home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / Other Langs / Tickle-4.0 (tcl) / library / help / tcl / control / catch < prev    next >
Encoding:
Text File  |  1993-10-26  |  1000 b   |  23 lines  |  [TEXT/$Tcl]

  1.  
  2.           catch script ?varName?
  3.  
  4.  
  5.      DESCRIPTION
  6.           The catch command may be used to prevent errors from  abort-
  7.           ing command interpretation.  Catch calls the Tcl interpreter
  8.           recursively to execute script, and always returns  a  TCL_OK
  9.           code,  regardless  of any errors that might occur while exe-
  10.           cuting script.  The return value from  catch  is  a  decimal
  11.           string giving the code returned by the Tcl interpreter after
  12.           executing script.  This will be 0 (TCL_OK) if there were  no
  13.           errors  in  script;  otherwise it will have a non-zero value
  14.           corresponding to one of the exceptional  return  codes  (see
  15.           tcl.h  for  the definitions of code values).  If the varName
  16.           argument is given, then it gives the  name  of  a  variable;
  17.           catch  will  set  the  variable  to the string returned from
  18.           script (either a result or an error message).
  19.  
  20.  
  21.      KEYWORDS
  22.           catch, error
  23.